Leverage the functions written in the other files to create your report:

Alcohol and car accidents

Introduction

According to National Public Radio (NPR), alcohol consumpt ion has been increasing in the United States, and out group wants to explore how this change may be related to the frequency of car accidents. One of the data sets we are using to examine this issue is “Drivers Involved in Fatal Crashes, by State and Blood Alcohol Concentration of the Driver” (source). This data covers the United States, up to the year 2017, and was collected by the Fatality Analysis Reporting System.

  • Write an introductory paragraph explaining the domain/data set (feel free to borrow from the brainstorm part of the assignment)
  • Write a summary paragraph that includes information calculated by your summary information function
  • Render your table and describe pertinent observations found in it
  • Describe the purpose of each chart (e.g., “this chart was intended to show the relationship between…”), render each chart, and describe pertinent observations found in each chart
  • In order to render this information, you’ll need to read in your data in (only) your index.Rmd file, and pass your data to the functions provided in each script.

R Markdown

This third chart was intended to show the relationship between drivers involved in fatal crashes with zero blood alcohol content compared to those who were over the legal limit of 0.08 BAC. This makes an effort to answer, “Is a driver with higher blood alcohol concentration (BAC) more likely to be involved in a crash?” Each point represents a state.

Here, we see that states with a higher percentage of sober drivers involved in fatal accidents had a lower percentage of drivers over the limit.